# Contributor: Dennis Krupenik <dennis@krupenik.com>
# Maintainer: Dennis Krupenik <dennis@krupenik.com>
pkgname=inxi
_pkgver=3.3.31-2
pkgver=${_pkgver/-/.}
pkgrel=0
pkgdesc="Fully featured CLI system information tool"
url="https://github.com/smxi/inxi"
arch="noarch"
license="GPL-3.0-or-later"
depends="perl"
subpackages="$pkgname-doc"
source="https://github.com/smxi/inxi/archive/$_pkgver/inxi-$_pkgver.tar.gz"
builddir="$srcdir/inxi-$_pkgver"

check() {
	# no upstream tests
	./inxi --version
}

package() {
	install -Dm0755 inxi -t "$pkgdir"/usr/bin
	install -Dm0644 inxi.1 -t "$pkgdir"/usr/share/man/man1
}

sha512sums="
d45bcfcddcf4229a292ea95e8517308852a5ffec8f00a059a2191acbb5a7e0b4e298c8b0597b3281e600913d82ce3e7d284735e608032bd843ddb79ae030e3ae  inxi-3.3.31-2.tar.gz
"
